-- GENERATED SPELL FOR [Negolash] --


function spell0_1494(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(5164,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1494', 2000, 1)
end

function Sorts_1494(pUnit, Event)
local choix_sorts_1494 = math.random(0, 0)
if choix_sorts_1494 == 0 then
pUnit:RegisterEvent('spell0_1494', 1, 1)
end
end

function mob1494_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1494', math.random(1500, 3000), 1)
end

function mob1494_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1494_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1494_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1494, 1, 'mob1494_Action')
RegisterUnitEvent(1494, 2, 'mob1494_Leave')
RegisterUnitEvent(1494, 3, 'mob1494_Kill')
RegisterUnitEvent(1494, 4, 'mob1494_Die')
